# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-padatious
pkgver=0.4.8
pkgrel=0
pkgdesc="A neural network intent parser"
url="http://padatious.readthedocs.io/"
arch=noarch
license="Apache-2.0"
depends="python3 py3-padaos py3-xxhash py3-fann2"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/MycroftAI/padatious/archive/v$pkgver/padatious-v$pkgver.tar.gz"
options="!check" # Tests are broken https://github.com/MycroftAI/padatious/issues/28
builddir="$srcdir/padatious-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="a711cb2f6ae57cf43786e4afa22913c78f8f550c3fe0580b45208e04968a55b113f7e5bc228ab172556043c6e9f29b1161f6376b98d995e35ab352e949639452  padatious-v0.4.8.tar.gz"
